<nz-card [nzTitle]="titleteplate" [nzExtra]="extraTemplate">
  <nz-table #basicTable [nzData]="el" [nzScroll]="{ x:'2000px', y: '420px' }">
    <thead>
    <tr>
      <th>生产批次</th>
      <th>烘焙豆数量(公斤)</th>

      <th>包材名称</th>
      <th>包材数量</th>
      <th>产品名称</th>
      <th>产品数量</th>
      <th>分装人员</th>
      <th>封装时间</th>

      <th>处理情况</th>
      <th nzWidth="350px">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>{{data.scpc}}</td>
      <td>{{data.bakebeantotal}}</td>

      <td>{{data.bcmc}}</td>
      <td>{{data.bcsl}}</td>
      <td>{{data.proid}}</td>
      <td>{{data.cpsl}}</td>
      <td>{{data.fzry}}</td>
      <td>{{data.fzsj|date:'yyyy-MM-dd'}}</td>

      <td>{{data.clqk}}</td>
      <td>
        <a nz-button nzType="primary" (click)="save(data.encapsulationid)">封装</a>
        &nbsp;
        <a nz-button nzType="primary"(click)="generateBcode(data.encapsulationid)">溯源码文件下载</a>
      </td>
    </tr>
    </tbody>
  </nz-table>


</nz-card>
<ng-template #extraTemplate>
  <nz-radio-group nzButtonStyle="solid">
    <label nz-radio-button nzValue="A" (click)="getEncapsulationByClqk('YCL')">已处理</label>
    <label nz-radio-button nzValue="B" (click)="getEncapsulationByClqk('WCL')">未处理</label>
  </nz-radio-group>
</ng-template>


<ng-template #titleteplate>

  <!--<nz-row [nzGutter]="8">
    <nz-col [nzSpan]="4">
      <nz-card>
        <nz-statistic
          [nzValue]="(11.28 | number: '1.0-2')!"
          [nzTitle]="'烘培豆数量'"
          [nzPrefix]="prefixTplOne"
          [nzSuffix]="'公斤'"
          [nzValueStyle]="{ color: '#3F8600' }"
        >
        </nz-statistic>
        <ng-template #prefixTplOne><i nz-icon nzType="arrow-up"></i></ng-template>
      </nz-card>
    </nz-col>
    <nz-col [nzSpan]="4">
      <nz-card>
        <nz-statistic
          [nzValue]="(9 | number: '1.0-2')!"
          [nzTitle]="'封装数量'"
          [nzPrefix]="prefixTplTwo"
          [nzSuffix]="'个'"
          [nzValueStyle]="{ color: '#CF1322' }"
        >
        </nz-statistic>
        <ng-template #prefixTplTwo><i nz-icon nzType="arrow-down"></i></ng-template>
      </nz-card>
    </nz-col>
  </nz-row>-->


</ng-template>
